package com.universalInterface.common.exception;

import com.universalInterface.common.result.ApiCode;

/**
 * @author Lx
 * @date 2023/12/8 15:08
 * @description 子类：业务自定义异常
 */
public class BusinessException extends BaseException{

    private static final long serialVersionUID = 5089327243727310346L;

    public BusinessException() {
        super();
    }

    public BusinessException(String message) {
        super(message);
    }

    public BusinessException(Integer code, String message) {
        super(code, message);
    }

    public BusinessException(ApiCode apiCode) {
        super(apiCode.getCode(), apiCode.getMessage());
    }

}
